\begin{figure}
  \centering
  \begin{tikzpicture}[trim axis left, trim axis right]
    \begin{axis}[legend pos=south east, xlabel=Complexity, ylabel=Density]
    \addplot[
        scatter/classes={
        hebrew={red},
        burmese={green},
        thai={blue},
        roman={cyan},
        greek={magenta},
        hiragana={yellow},
        katakana={black},
        georgian={gray},
        armenian={lime},
        cyrillic={olive},
        kanji={orange}
      },
      scatter,only marks,mark=x,
      scatter src=explicit symbolic,
      title={Complexity vs Density},
      xlabel=Complexity,
      ylabel=Density]
      table[x=complexity, y=density, meta=alphabet] {data/complexitydensity.table};
      \legend{Hebrew, Burmese, Thai, Roman, Greek, Hiragana, Katakana, Georgian, Armenian, Cyrillic, Kanji}
    \end{axis}
  \end{tikzpicture}

  \caption{Perimetric complexity vs. density}
  \label{fig:complexitydensity}
\end{figure}
\begin{figure}
  \centering
  \begin{tikzpicture}[trim axis left, trim axis right]
    \begin{axis}[legend pos=north east, xlabel=Complexity, ylabel=Density]
    \addplot[
        scatter/classes={
        arial={red},
        courier={green},
        impact={blue}
      },
      scatter,only marks,mark=*,
      scatter src=explicit symbolic,
      title={Fonts Arial, Courier New and Impact}
      xlabel=Complexity,
      ylabel=Density]
      table[x=complexity, y=density, meta=alphabet] {data/3fonts.table};
      \legend{Arial, Courier, Impact}
    \end{axis}
  \end{tikzpicture}
  \caption{Complexity vs. density of 3 different fonts}
  \label{fig:3fonts}
\end{figure}

\begin{figure}
  \centering
  \begin{tikzpicture}[trim axis left, trim axis right]
    \begin{axis}[legend pos=south east, xlabel=Complexity, ylabel=Density]
    \addplot[
        scatter/classes={
        hebrew={red},
        burmese={green},
        thai={blue},
        roman={cyan},
        greek={magenta},
        hiragana={yellow},
        katakana={black},
        georgian={gray},
        armenian={lime},
        cyrillic={olive},
        kanji={orange},
        qr={purple}
      },
      scatter,only marks,mark=x,
      scatter src=explicit symbolic,
      title={Complexity vs Density},
      xlabel=Complexity,
      ylabel=Density]
      table[x=complexity, y=density, meta=alphabet] {data/compDensQRNotThinned.table};
      \legend{Hebrew, Burmese, Thai, Roman, Greek, Hiragana, Katakana, Georgian, Armenian, Cyrillic, Kanji, QR}
    \end{axis}
  \end{tikzpicture}

  \caption{Perimetric complexity vs. density, QR codes included}
  \label{fig:qrcomplexitydensity}
\end{figure}

\begin{table}[h!tb]
  \centering
  \begin{tabular}{cr|c|c|c|c|}
       & \multicolumn{1}{c}{}  & \multicolumn{4}{c}{Predicted class} \\
       &  & Arial & Courier & Impact & Calibri \\ \cline{2-6}
  \multirow{4}{*}{Actual class} & Arial   & 21    & 1       & 0      & 4       \\ \cline{2-6}
                                   & Courier & 0     & 26      & 0      & 0       \\ \cline{2-6}
                                   & Impact  & 0     & 0       & 26     & 0       \\ \cline{2-6}
                                   & Calibri & 4     & 0       & 0      & 22      \\ \cline{2-6}
  \end{tabular}
  \caption{Confusion matrix of font classifier}
  \label{tab:confFonts}
\end{table}

\begin{sidewaystable}[h!]
  \centering
  \begin{tabular}{r|c|c|c|c|c|c|c|c|c|c|c|}
   & Hebrew & Burmese & Thai & Roman & Greek & Hiragana & Katakana & Georgian & Armenian & Cyrillic & Kanji \\ \hline
  Hebrew & 17 & 0 & 1 & 3 & 3 & 0 & 0 & 1 & 2 & 0 & 0 \\ \hline
  Burmese & 1 & 41 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline
  Thai & 1 & 0 & 37 & 0 & 0 & 3 & 0 & 1 & 2 & 0 & 0 \\ \hline
  Roman & 1 & 0 & 1 & 7 & 5 & 0 & 0 & 1 & 2 & 9 & 0 \\ \hline
  Greek & 3 & 0 & 4 & 6 & 4 & 0 & 0 & 4 & 0 & 3 & 0 \\ \hline
  Hiragana & 0 & 0 & 2 & 0 & 0 & 72 & 9 & 2 & 0 & 0 & 0 \\ \hline
  Katakana & 0 & 0 & 0 & 0 & 0 & 14 & 75 & 0 & 0 & 0 & 0 \\ \hline
  Georgian & 3 & 1 & 2 & 1 & 5 & 9 & 1 & 20 & 0 & 0 & 0 \\ \hline
  Armenian & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 34 & 1 & 0 \\ \hline
  Cyrillic & 5 & 0 & 2 & 7 & 4 & 1 & 0 & 2 & 0 & 4 & 0 \\ \hline
  Kanji & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 64 \\ \hline
  \end{tabular}
  \caption{Confusion matrix of writing system classifier}
  \label{tab:confWS}
\end{sidewaystable}
